using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DestroyAfterClipDepletion:MonoBehaviour {

	WeaponSlot weaponSlot;
	Mob mob;

	void Start() {
		weaponSlot=GetComponentInChildren<WeaponSlot>();
		mob=GetComponentInParent<Mob>();
	}
	void Update() {
		if(weaponSlot.weapon.currentClip.content.Count==0) mob.Damage(new DamageStats(1000000000));
	}

}
